import Vue from 'vue'
import Router from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/menber',
      name: 'menber',
      component: () => import(/* webpackChunkName: "menber" */ '../views/Menber.vue')
    },
    {
      path: '/newsList',
      name: 'newsList',
      component: () => import(/* webpackChunkName: "newsList" */ '../views/news/newsList.vue')
    },
    {
      path: '/newsDetail',
      name: 'newsDetail',
      component: () => import(/* webpackChunkName: "newsDetail" */ '../views/news/newsDetail.vue')
    },
    {
      path: '/imgsList',
      name: 'imgsList',
      component: () => import(/* webpackChunkName: "imgsList" */ '../views/picture/ImgsList.vue')
    },
    {
      path: '/imgsDetail/:id',
      name: 'imgsDetail',
      component: () => import(/* webpackChunkName: "imgsDetail" */ '../views/picture/ImgsDetail.vue')
    },
    {
      path: '/goodsList',
      name: 'goodsList',
      component: () => import(/* webpackChunkName: "goodsList" */ '../views/goods/GoodsList.vue')
    },
    {
      path: '/goodsDetail/:id',
      name: 'goodsDetail',
      component: () => import(/* webpackChunkName: "goodsDetail" */ '../views/goods/GoodsDetail.vue')
    },
    {
      path: '/goodsDesc/:id',
      name: 'goodsDesc',
      component: () => import(/* webpackChunkName: "goodsDesc" */ '../views/goods/GoodsDesc.vue')
    },
    {
      path: '/goodsComment/:id',
      name: 'goodsComment',
      component: () => import(/* webpackChunkName: "goodsComment" */ '../views/goods/GoodsComment.vue')
    },
    {
      path: '/cart',
      name: 'cart',
      component: () => import(/* webpackChunkName: "cart" */ '../views/Cart.vue')
    }
  ]
})
